<%-- 
    Document   : index
    Created on : Apr 17, 2011, 6:48:47 AM
    Author     : havn
--%>

<%@include file="page\header.jsp" %>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>                   
<form method="post" action="Transaction">
    <table width="100%" border="0">
        <tr>
            <td colspan="2"><h3>Customer Entry Form</h3></td>
        </tr>
        <tr>
            <td style="text-align: right">Account Number:</td>
            <td style="text-align: left"><input type="textbox" name="accNumber"></td>
            <td><div class="errors"></div></td>
        </tr>
        <tr>
            <td style="text-align: right">Password:</td>
            <td style="text-align: left"><input type="password" name="pass"></td>
            <td><div class="errors"><c:out value="${chkpass}"></c:out></div></td>
        </tr>
        <tr>
            <td style="text-align: right">Transaction Type:</td>
            <td style="text-align: left">
                <input type="radio" value="WDL" name="transType" checked="true">Withdrawal</input>
                <input type="radio" value="DPS" name="transType">Deposit</input>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">Amount:</td>
            <td style="text-align: left">$<input type="textbox" name="amount"></td>
        </tr>
        <tr>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td style="text-align: right"><button type="submit">Process the transaction</button></td>
            <td style="text-align: left"><button type="reset">Reset</button></td>
        </tr>
        <c:set var="error" value="${error}"></c:set>
        <tr style="background-color: azure">
            <td><c:out value="${error}"></c:out></td>
            <td></td>
        </tr>
    </table>
</form>


<%@include file="page\footer.jsp" %>                